console.log("********************");
console.log("\t数组");

/** 数组是一种存放数据的格式 可以理解为特殊的对象 */

// var a = {
//     0 =:"苹果",
//     1 =:"香蕉",
//     2 =:"芒果",
//     length:3
// }

// console.log(a[2]);
var a1 =new Array("苹果","香蕉","芒果");
console.log(a1);

var student1 = [
    "小贾",
    19,
    180.00,
    85,
    ["篮球","跑步","音乐"],
    function(){
        console.log("摆摆pose");
        console.log("骑行挑战青藏高原环形旅游");
    }
];

console.log(student1);
console.log(student1[4]);
console.log(student1[5]());
student1[student1.length] = "Go die";
console.log(student1);

/**
 * 数组实质是对象
 * length属性 数组总元素位数
 * push()添加元素
 * pop()删除末尾元素
 * shift()
 * unshift(
 * sort()内容排序
 * join()内容拼接
 */